/* ------------------------------------------------------------------
 *   Product:      mybatis
 *   Module Name:  COMMON
 *   Package Name: com.gloryjie.learn.model
 *   Date Created: 2018/10/28
 * ------------------------------------------------------------------
 * Modification History
 * DATE            Name           Contact
 * ------------------------------------------------------------------
 * 2018/10/28      Jie            GloryJie@163.com
 */
package com.gloryjie.learn.model;

import org.apache.ibatis.reflection.Reflector;

import java.util.Arrays;

/**
 * @author Jie
 * @since
 */
public class Student extends User{

  private Integer grades;


  public Integer getGrades() {
    return grades;
  }

  public void setGrades(Integer grades) {
    this.grades = grades;
  }


  @Override
  public String toString() {
    return "Student{" +
            "grades=" + grades +
            '}';
  }

  public static void main(String[] args) {
    Reflector reflector = new Reflector(Student.class);

    System.out.println(Arrays.toString(reflector.getGetablePropertyNames()));
  }
}
